package jsu.blogger.service.inter;

import jsu.blogger.pojo.Comment;

import java.sql.Timestamp;
import java.util.List;

public interface CommentService {

    int insertComment(Long postId, Long userId, Long parentCommentId, Long replyToUserId, String content, Timestamp createdAt);

    List<Comment> getParentComments(Long postId, int begin, int count);

    List<Comment>getSonComments(Long postId, Long parentCommentId, int begin, int count);

    boolean deleteComment(Long commentId, Long uid);

    String getParentComment(Long commentId);
}
